﻿using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web;
using System.Web.Http;
using WebApi.Services;

namespace WebApi.Controllers.Admin
{
    [RoutePrefix("api/Admin/Login")]
    public class LoginController : ApiController
    {
        [Route("login"), HttpGet]
        public JObject Login()
        {
            var req = HttpContext.Current.Request;
            return MyLogin.adlogin(req["ad_id"],req["ad_password"]);
        }

    }
}